<?php
class ArticleAction extends FrontendAction
{
    public function view()
    {
    	$article_mod = M('Article');
    	$id = isset($_GET['id']) && intval($_GET['id']) ? intval($_GET['id']):$this->error('参数错误');
		$article = $article_mod->where('id='.$id)->find();
    	$this->assign("article",$article);
        $this->display();
    }
}
?>